<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/designM/rspsLink.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_7815f4a69fa470e020068bb120d080ef.html">designM</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">rspsLink.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d7/d12/rsps_link_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="foldopen" id="foldopen00015" data-start="{" data-end="}">
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="../../da/dde/namespacerspsprivate____.html">   15</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../da/dde/namespacerspsprivate____.html">rspsprivate__</a></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>{</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="../../d8/df3/structrspsprivate_____1_1resp_itfc____.html">   17</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../d8/df3/structrspsprivate_____1_1resp_itfc____.html">respItfc__</a>{};</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>}</div>
</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="foldopen" id="foldopen00020" data-start="" data-end="">
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../d7/d12/rsps_link_8hpp.html#aaf40ae1a7982b27539abf0c823daed19">   20</a></span><span class="preprocessor">#define DECLARE_RESPLINK_ITFC( name )                       \</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">    struct name :public rspsprivate__::respItfc__ {         \</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">    virtual ~name(){}</span></div>
</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="comment">// 如果不使用回调函数调用的时候，name必须声明为operation</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d7/d12/rsps_link_8hpp.html#abc7bd6fae02244e8798d6b698c04da3b">   25</a></span><span class="preprocessor">#define RESPLINK_ITFC_MTD( name , ... )   virtual bool name(  __VA_ARGS__ ) = 0;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="../../d7/d12/rsps_link_8hpp.html#a6839fa615e56d859d04bc3d7a3010fd6">   27</a></span><span class="preprocessor">#define END_DECLARE_RESPLINK_ITFC()   };</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>    </div>
<div class="foldopen" id="foldopen00029" data-start="" data-end="">
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../d7/d12/rsps_link_8hpp.html#a0b7f2d06bffba33a2020bd3fcf89e9fe">   29</a></span><span class="preprocessor">#define DECLARE_RESPLINK_ITFC_DEFAULT( name , ...)      \</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="preprocessor">DECLARE_RESPLINK_ITFC( name )                           \</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">RESPLINK_ITFC_MTD( operation , __VA_ARGS__ )            \</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">END_DECLARE_RESPLINK_ITFC()</span></div>
</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>{</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="keyword">namespace </span>dm</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>{</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> ITFC_TYPE &gt;</div>
<div class="foldopen" id="foldopen00040" data-start="{" data-end="};">
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html">   40</a></span>    <span class="keyword">class </span><a class="code hl_class" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html">rspsLink</a></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    {</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aae5fa40c645ba8062cf1ba0402053613">   43</a></span>        <span class="keyword">using </span><a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aae5fa40c645ba8062cf1ba0402053613">itfc_t</a> = <span class="keyword">typename</span> std::remove_pointer&lt; typename std::decay&lt; ITFC_TYPE &gt;::type &gt;::type;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>        <span class="keyword">static_assert</span>( std::is_base_of&lt; rspsprivate__::respItfc__ ,  itfc_t &gt;::value , <span class="stringliteral">&quot;&quot;</span> );</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>        </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#acae5f8f967cf34690adc5e6c537bdbde">   46</a></span>        <span class="keyword">using </span><a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#acae5f8f967cf34690adc5e6c537bdbde">link_t</a>        = std::list&lt;  itfc_t* &gt;;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">   47</a></span>        <span class="keyword">using </span><a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">iterator</a>      = <span class="keyword">typename</span> link_t::iterator;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">   49</a></span>        <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#acae5f8f967cf34690adc5e6c537bdbde">link_t</a>             <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">   50</a></span>        std::mutex         <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a>;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ab19c205cbbabecbc5048acd7e6f17c1c">   52</a></span>        <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ab19c205cbbabecbc5048acd7e6f17c1c">rspsLink</a>(){}</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3bf5e1d5f664554a4302175dc6aa5f80">   53</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3bf5e1d5f664554a4302175dc6aa5f80">~rspsLink</a>(){}</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>        <span class="keyword">template</span>&lt; <span class="keyword">typename</span> ...Params &gt;</div>
<div class="foldopen" id="foldopen00060" data-start="{" data-end="}">
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#acd2e30101a7446c66550c7e9eeaaba5f">   60</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#acd2e30101a7446c66550c7e9eeaaba5f">request</a>( Params&amp;&amp;... params ){</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>            <span class="keywordflow">for</span>( <span class="keyword">auto</span> item : <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a> ){</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>                std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>                <span class="keyword">auto</span> * p = item ;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>                <span class="keywordflow">if</span>( p == <span class="keyword">nullptr</span> ) <span class="keywordflow">continue</span>;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>                </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>                <span class="keywordtype">bool</span> rst = p-&gt;operation( std::forward&lt;Params&gt;( params)...);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>                <span class="keywordflow">if</span>( rst == <span class="keyword">false</span> ){</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>                    <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>                }</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>            }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>        }</div>
</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>        <span class="keyword">template</span>&lt; <span class="keyword">typename</span> Func_t , <span class="keyword">typename</span>... Params &gt;</div>
<div class="foldopen" id="foldopen00083" data-start="{" data-end="}">
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3e448c51e39cdd80b5c5771be651c956">   83</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3e448c51e39cdd80b5c5771be651c956">requestCallback</a>( Func_t &amp;&amp; fun , Params&amp;&amp; ...args ){</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>            <span class="keyword">using </span>result_type = <span class="keyword">typename</span> std::result_of&lt; Func_t( <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aae5fa40c645ba8062cf1ba0402053613">itfc_t</a>* , Params&amp;&amp;... ) &gt;::type;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>            <span class="keyword">static_assert</span>( std::is_same&lt;result_type , bool &gt;::value , <span class="stringliteral">&quot;&quot;</span> );</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>            </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>            <span class="keywordflow">for</span>( <span class="keyword">auto</span> item : <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a> ){</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>                std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>                <span class="keyword">auto</span> * p =  item;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>                <span class="keywordflow">if</span>( p == <span class="keyword">nullptr</span> ) <span class="keywordflow">continue</span>;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>                </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>                <span class="keywordtype">bool</span> rst = fun( p , std::forward&lt;Params&gt;(args)... );</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>                <span class="keywordflow">if</span>( rst == <span class="keyword">false</span> ){</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>                    <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>                }</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>            }</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>        }</div>
</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>        <span class="keyword">template</span>&lt; <span class="keyword">typename</span> subType &gt;</div>
<div class="foldopen" id="foldopen00106" data-start="{" data-end="}">
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ae291ed3f34a3c8ecb022553c7b39a925">  106</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ae291ed3f34a3c8ecb022553c7b39a925">push_back</a>(  subType * rsps ){</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>            <span class="keyword">using </span>type = <span class="keyword">typename</span> std::remove_pointer&lt; typename std::decay&lt;subType&gt;::type &gt; :: type;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>            <span class="keyword">static_assert</span>( std::is_base_of&lt;rspsprivate__::respItfc__ , type &gt;::value , <span class="stringliteral">&quot;&quot;</span> );</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>            std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>            <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a>.push_back( rsps );</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>        }</div>
</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>        <span class="keyword">template</span>&lt; <span class="keyword">typename</span> subType &gt;</div>
<div class="foldopen" id="foldopen00117" data-start="{" data-end="}">
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a42ef17a326ccdccdbcf7aad2349a6cfd">  117</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a42ef17a326ccdccdbcf7aad2349a6cfd">insert</a>( <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">iterator</a> it , subType * rsps ){</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>            <span class="keyword">using </span>type = <span class="keyword">typename</span> std::remove_pointer&lt; typename std::decay&lt;subType&gt;::type &gt; :: type;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>            <span class="keyword">static_assert</span>( std::is_base_of&lt;rspsprivate__::respItfc__ , type &gt;::value , <span class="stringliteral">&quot;&quot;</span> );</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>            std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>            <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a>.insert( it , rsps );</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>        }</div>
</div>
<div class="foldopen" id="foldopen00127" data-start="{" data-end="}">
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a0e7d72ffb47a7430d36041a3683de5a5">  127</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a0e7d72ffb47a7430d36041a3683de5a5">erase</a>( <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">iterator</a> it ){</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>            std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>            <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a>.erase( it );</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>        }</div>
</div>
<div class="foldopen" id="foldopen00136" data-start="{" data-end="}">
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3fea8c815648a0a237309de9229850f8">  136</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3fea8c815648a0a237309de9229850f8">erase</a>( <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">iterator</a> start , <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">iterator</a> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6f15c835255c36908847147f31947f10">end</a> ){</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>            std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>            <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a>.erase( start , <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6f15c835255c36908847147f31947f10">end</a> );</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>        }</div>
</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span> </div>
<div class="foldopen" id="foldopen00141" data-start="{" data-end="}">
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#afc3cd72f896c8494ed13555765a1edbe">  141</a></span>        <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">iterator</a> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#afc3cd72f896c8494ed13555765a1edbe">begin</a>(){ </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>            std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>            <span class="keywordflow">return</span> <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a>.begin(); </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        }</div>
</div>
<div class="foldopen" id="foldopen00145" data-start="{" data-end="}">
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6f15c835255c36908847147f31947f10">  145</a></span>        <a class="code hl_typedef" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">iterator</a> <a class="code hl_function" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6f15c835255c36908847147f31947f10">end</a>(){ </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>            std::lock_guard&lt; std::mutex &gt; lck( <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">m_mutex__</a> );</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>            <span class="keywordflow">return</span> <a class="code hl_variable" href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">m_link__</a>.end(); </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>        }</div>
</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>        </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    };</div>
</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>}}</div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html">wheels::dm::rspsLink</a></div><div class="ttdef"><b>定义</b> <a href="#l00040">rspsLink.hpp:41</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_a0e7d72ffb47a7430d36041a3683de5a5"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a0e7d72ffb47a7430d36041a3683de5a5">wheels::dm::rspsLink::erase</a></div><div class="ttdeci">void erase(iterator it)</div><div class="ttdoc">删除链上的一个对象。删除链中间的对象不会影响连上传递过程</div><div class="ttdef"><b>定义</b> <a href="#l00127">rspsLink.hpp:127</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_a3bf5e1d5f664554a4302175dc6aa5f80"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3bf5e1d5f664554a4302175dc6aa5f80">wheels::dm::rspsLink::~rspsLink</a></div><div class="ttdeci">virtual ~rspsLink()</div><div class="ttdef"><b>定义</b> <a href="#l00053">rspsLink.hpp:53</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_a3e448c51e39cdd80b5c5771be651c956"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3e448c51e39cdd80b5c5771be651c956">wheels::dm::rspsLink::requestCallback</a></div><div class="ttdeci">void requestCallback(Func_t &amp;&amp;fun, Params &amp;&amp;...args)</div><div class="ttdoc">以责任链模式执行的时候接口函数返回false则停止继续传递。这个方法用于需要使用回调函数针对 每一个责任链上的负责者进行精细化处理的情况。使用自定义接口的时候，使用宏定义自己的接口或者多个 接口，就必须...</div><div class="ttdef"><b>定义</b> <a href="#l00083">rspsLink.hpp:83</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_a3fea8c815648a0a237309de9229850f8"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a3fea8c815648a0a237309de9229850f8">wheels::dm::rspsLink::erase</a></div><div class="ttdeci">void erase(iterator start, iterator end)</div><div class="ttdoc">删除链上的多个对象， 删除[start, end)区间的内容。删除链中间的对象不会影响连上传递过程</div><div class="ttdef"><b>定义</b> <a href="#l00136">rspsLink.hpp:136</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_a42ef17a326ccdccdbcf7aad2349a6cfd"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a42ef17a326ccdccdbcf7aad2349a6cfd">wheels::dm::rspsLink::insert</a></div><div class="ttdeci">void insert(iterator it, subType *rsps)</div><div class="ttdoc">插入责任对象</div><div class="ttdef"><b>定义</b> <a href="#l00117">rspsLink.hpp:117</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_a6b57dbd1b6b95169e5e9f507ba3cf1c0"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6b57dbd1b6b95169e5e9f507ba3cf1c0">wheels::dm::rspsLink::m_mutex__</a></div><div class="ttdeci">std::mutex m_mutex__</div><div class="ttdef"><b>定义</b> <a href="#l00050">rspsLink.hpp:50</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_a6f15c835255c36908847147f31947f10"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#a6f15c835255c36908847147f31947f10">wheels::dm::rspsLink::end</a></div><div class="ttdeci">iterator end()</div><div class="ttdef"><b>定义</b> <a href="#l00145">rspsLink.hpp:145</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_aac5e822074907f78f1400833f4b40e2d"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aac5e822074907f78f1400833f4b40e2d">wheels::dm::rspsLink::m_link__</a></div><div class="ttdeci">link_t m_link__</div><div class="ttdef"><b>定义</b> <a href="#l00049">rspsLink.hpp:49</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_aae5fa40c645ba8062cf1ba0402053613"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#aae5fa40c645ba8062cf1ba0402053613">wheels::dm::rspsLink::itfc_t</a></div><div class="ttdeci">typename std::remove_pointer&lt; typename std::decay&lt; ITFC_TYPE &gt;::type &gt;::type itfc_t</div><div class="ttdef"><b>定义</b> <a href="#l00043">rspsLink.hpp:43</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_ab19c205cbbabecbc5048acd7e6f17c1c"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ab19c205cbbabecbc5048acd7e6f17c1c">wheels::dm::rspsLink::rspsLink</a></div><div class="ttdeci">rspsLink()</div><div class="ttdef"><b>定义</b> <a href="#l00052">rspsLink.hpp:52</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_acae5f8f967cf34690adc5e6c537bdbde"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#acae5f8f967cf34690adc5e6c537bdbde">wheels::dm::rspsLink::link_t</a></div><div class="ttdeci">std::list&lt; itfc_t * &gt; link_t</div><div class="ttdef"><b>定义</b> <a href="#l00046">rspsLink.hpp:46</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_acd2e30101a7446c66550c7e9eeaaba5f"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#acd2e30101a7446c66550c7e9eeaaba5f">wheels::dm::rspsLink::request</a></div><div class="ttdeci">void request(Params &amp;&amp;... params)</div><div class="ttdoc">以责任链模式执行的时候接口函数返回false则停止继续传递</div><div class="ttdef"><b>定义</b> <a href="#l00060">rspsLink.hpp:60</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_ad763d4457c8f664e934e15d222b31b5c"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ad763d4457c8f664e934e15d222b31b5c">wheels::dm::rspsLink::iterator</a></div><div class="ttdeci">typename link_t::iterator iterator</div><div class="ttdef"><b>定义</b> <a href="#l00047">rspsLink.hpp:47</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_ae291ed3f34a3c8ecb022553c7b39a925"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#ae291ed3f34a3c8ecb022553c7b39a925">wheels::dm::rspsLink::push_back</a></div><div class="ttdeci">void push_back(subType *rsps)</div><div class="ttdoc">在最后添加新的处理对象</div><div class="ttdef"><b>定义</b> <a href="#l00106">rspsLink.hpp:106</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1rsps_link_html_afc3cd72f896c8494ed13555765a1edbe"><div class="ttname"><a href="../../d0/d0c/classwheels_1_1dm_1_1rsps_link.html#afc3cd72f896c8494ed13555765a1edbe">wheels::dm::rspsLink::begin</a></div><div class="ttdeci">iterator begin()</div><div class="ttdef"><b>定义</b> <a href="#l00141">rspsLink.hpp:141</a></div></div>
<div class="ttc" id="anamespacerspsprivate_____html"><div class="ttname"><a href="../../da/dde/namespacerspsprivate____.html">rspsprivate__</a></div><div class="ttdoc">责任链模式。</div><div class="ttdef"><b>定义</b> <a href="#l00015">rspsLink.hpp:16</a></div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
<div class="ttc" id="astructrspsprivate_____1_1resp_itfc_____html"><div class="ttname"><a href="../../d8/df3/structrspsprivate_____1_1resp_itfc____.html">rspsprivate__::respItfc__</a></div><div class="ttdef"><b>定义</b> <a href="#l00017">rspsLink.hpp:17</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
